package com.detector.common;

import com.github.pagehelper.PageInfo;

public class Pages {
	private Integer pageNum=1;//当前第几页
	private Integer pageSize=3;//每页多少条
	private Long total;//总共多少条数据
	private Integer pages;//总共多少页
	
	
	public Pages() {
		super();
	}
	public Pages(Integer pageNum, Integer pageSize, Long total, Integer pages) {
		super();
		this.pageNum = pageNum;
		this.pageSize = pageSize;
		this.total = total;
		this.pages = pages;
	}
	public Pages(PageInfo pageInfo) {
		super();
		this.pageNum = pageInfo.getPageNum();
		this.pageSize = pageInfo.getPageSize();
		this.total = pageInfo.getTotal();
		this.pages = pageInfo.getPages();
	}
	public Integer getPageNum() {
		return pageNum;
	}
	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public Integer getPages() {
		return pages;
	}
	public void setPages(Integer pages) {
		this.pages = pages;
	}	
}
